package com.fullstack.app.pages

import cats.effect.IO
import com.fullstack.app.App
import tyrian.Html.*
import tyrian.{Cmd, Html}

case class NotFoundPage() extends Page {
  override def initCmd: Cmd[IO, App.Msg] = Cmd.None

  override def update(msg: App.Msg): (Page, Cmd[IO, App.Msg]) =
    msg match
      case _ =>
        (this, Cmd.None)

  override def view(): Html[App.Msg] =
    div(cls := "")(
      "不存在的页面！"
    )

}
